/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package be.ac.ua.comp.projectGPT.Main;

import be.ac.ua.comp.projectGPT.Jobs.Job;
import be.ac.ua.comp.projectGPT.Jobs.JobGenerator;
import be.ac.ua.comp.projectGPT.Jobs.implementations.BusyLoopJob;
import java.lang.reflect.InvocationTargetException;
import java.util.Vector;

/**
 *
 * @author Admin
 */
public class JobGeneratorTest extends Test {

    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IllegalArgumentException, NoSuchMethodException, InvocationTargetException {

            JobGeneratorTest generatorTest = new JobGeneratorTest();

            generatorTest.log("Testing job generator");

            JobGenerator generator = new JobGenerator();

            Vector<Object> parameterList = new Vector<Object>();
            parameterList.add(2000);
            Job job = JobGenerator.createJob(null, "be.ac.ua.comp.projectGPT.Jobs.implementations.BusyLoopJob", parameterList.toArray());

            generatorTest.log("Requested job: "+BusyLoopJob.class.getCanonicalName());
            generatorTest.log("Received job: "+job.toString());

    }


}
